package org.jeecg.common.modules.wx.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: wx_account
 * @Author: jeecg-boot
 * @Date: 2020-08-08
 * @Version: V1.0
 */
@Data
@TableName("wx_account")
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "wx_account对象", description = "wx_account")
public class WxAccount implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "id")
    private String id;
    /**
     * 公众号名称
     */
    @Excel(name = "公众号名称", width = 15)
    @ApiModelProperty(value = "公众号名称")
    private String name;
    /**
     * 公众号原始id
     */
    @Excel(name = "公众号原始id", width = 15)
    @ApiModelProperty(value = "公众号原始id")
    private String accountId;
    /**
     * appid
     */
    @Excel(name = "appid", width = 15)
    @ApiModelProperty(value = "appid")
    private String appid;
    /**
     * secret
     */
    @Excel(name = "secret", width = 15)
    @ApiModelProperty(value = "secret")
    private String secret;
    /**
     * token
     */
    @Excel(name = "token", width = 15)
    @ApiModelProperty(value = "token")
    private String token;
    /**
     * access_token
     */
    @Excel(name = "access_token", width = 15)
    @ApiModelProperty(value = "access_token")
    private String accessToken;
    /**
     * js_ticket
     */
    @Excel(name = "js_ticket", width = 15)
    @ApiModelProperty(value = "js_ticket")
    private String jsTicket;
    /**
     * 公众号描述
     */
    @Excel(name = "公众号描述", width = 15)
    @ApiModelProperty(value = "公众号描述")
    private String remark;
    /**
     * 上次获取access_token时间
     */
    @Excel(name = "上次获取access_token时间", width = 15, format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "上次获取access_token时间")
    private Date addTokenTime;

    @Excel(name = "上次获取js_ticket时间", width = 15, format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "上次获取js_ticket时间")
    private Date addTicketTime;
    /**
     * 状态
     */
    @Excel(name = "状态", width = 15, dicCode = "valid_status")
    @Dict(dicCode = "valid_status")
    @ApiModelProperty(value = "状态")
    private Integer status;
    /**
     * access_token过期时间
     */
    @Excel(name = "access_token过期时间", width = 15)
    @ApiModelProperty(value = "access_token过期时间")
    private Integer expiresIn;
    /**
     * 微信推送地址
     */
    @Excel(name = "微信推送地址", width = 15)
    @ApiModelProperty(value = "微信推送地址")
    private String wxRespUrl;
    /**
     * 创建人
     */
    @ApiModelProperty(value = "创建人")
    private String createBy;
    /**
     * 创建时间
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
    /**
     * 修改人
     */
    @ApiModelProperty(value = "修改人")
    private String updateBy;
    /**
     * 修改时间
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "修改时间")
    private Date updateTime;
    /**
     * 所属部门
     */
    @ApiModelProperty(value = "所属部门")
    private String sysOrgCode;
}
